<?php

//include_once APPLICATION_PATH . '/forms/AbmClientesForm.php';

require_once 'Zend/Controller/Action.php';
require_once dirname(dirname(__FILE__)) . '/forms/NuevaLocalidadForm.php';
//require_once dirname(dirname(__FILE__)) . '/forms/EditarLocalidad.php';
//require_once dirname(dirname(__FILE__)) . '/forms/EliminarLocalidad.php';
//require_once dirname(dirname(__FILE__)) . '/forms/MostrarLocalidad.php';
require_once dirname(dirname(__FILE__)) . '/forms/BuscarLocalidad.php';
require_once dirname(dirname(__FILE__)) . '/forms/ConsultarLocalidades.php';

require_once dirname(dirname(__FILE__)) . '/models/Single/LocalidadEntity.php';

class IndexController extends Zend_Controller_Action
{

//    public function preDispatch()
//    {
//        $request = $this->getRequest();
//
//        Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
//        $contextSwitch = $this->_helper->contextSwitch;
//        if (!$contextSwitch->hasContext('ajax')) {
//            $contextSwitch->addContext('ajax', array('suffix' => 'ajax'))
//                        ->addActionContext('new', 'ajax')
//                        ->addActionContext('followup', 'ajax')
//                        ->addActionContext('display', 'ajax')
//                        ->addActionContext('active', 'ajax')
//                        ->addActionContext('active-data', 'ajax')
//                        ->addActionContext('active-data-count', 'ajax')
//                        ->initContext();
//        }
//
//        $message = array(
//            'Current request information',
//            array(
//                array('Module', 'Controller', 'Action'),
//                array($request->getModuleName(), $request->getControllerName(), $request->getActionName()),
//            )
//        );
//
//        Zend_Registry::get('log')->table($message);
//    }

    protected $_flashMessenger = null;
    private $destinoRedireccion = '/localidad';

    public function init()
    {
        $this->initView();
        $this->_flashMessenger = $this->_helper->FlashMessenger;
        $this->view->baseUrl = $this->_request->getBaseUrl();
        $this->view->messages = $this->_flashMessenger;
    }

    public function indexAction() {
        $this->view->accion = 'index';
    }

    
}

